/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.work.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 操作日志Entity
 * @author alex
 * @version 2017-05-04
 */
public class WorkOpLog extends DataEntity<WorkOpLog> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 操作用户ID
	private String userName;		// 操作用户
	private String operationType;		// 操作类型
	private String warehouseId;		// 仓库
	private String warehouseName;		// warehouse_name
	private String proCode;		// 条码
	private String workNo;		// 工作号
	private String journalNo;		// 单据号
	private String detailNo;		// 单据明细号
	private String num;		// 数量
	
	public WorkOpLog() {
		super();
	}

	public WorkOpLog(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=30, message="操作用户长度必须介于 0 和 30 之间")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@Length(min=0, max=2, message="操作类型长度必须介于 0 和 2 之间")
	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}
	
	@Length(min=0, max=30, message="仓库长度必须介于 0 和 30 之间")
	public String getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}
	
	@Length(min=0, max=50, message="warehouse_name长度必须介于 0 和 50 之间")
	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}
	
	@Length(min=0, max=50, message="条码长度必须介于 0 和 50 之间")
	public String getProCode() {
		return proCode;
	}

	public void setProCode(String proCode) {
		this.proCode = proCode;
	}
	
	@Length(min=0, max=30, message="工作号长度必须介于 0 和 30 之间")
	public String getWorkNo() {
		return workNo;
	}

	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}
	
	@Length(min=0, max=30, message="单据号长度必须介于 0 和 30 之间")
	public String getJournalNo() {
		return journalNo;
	}

	public void setJournalNo(String journalNo) {
		this.journalNo = journalNo;
	}
	
	@Length(min=0, max=30, message="单据明细号长度必须介于 0 和 30 之间")
	public String getDetailNo() {
		return detailNo;
	}

	public void setDetailNo(String detailNo) {
		this.detailNo = detailNo;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
}